﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="{85f43f8a-f040-4ab1-8d78-8843630b25ed}" Location="CommandUI.Ribbon">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.Documents.Copies.Controls._children">
          <Button Id="Ribbon.Documents.Copies.DownloadZip"
                  Command="{e6c66482-6675-4646-91ee-669042aeb4fe}"
                  Sequence="15"
                  Image16by16="/_layouts/images/spra/zip_16x16.png"
                  Image32by32="/_layouts/images/spra/zip_32x32.png"
                  Description="Download zip" LabelText="Download as Zip"
                  TemplateAlias="o1"/>
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
          Command="{e6c66482-6675-4646-91ee-669042aeb4fe}"
          CommandAction="javascript:SPRADownloadZip();"
          EnabledScript="javascript:SPRADownloadZipEnable();"/>
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
  
  <CustomAction Id="Ribbon.Library.Actions.Scripts"
                Location="ScriptLink"
                ScriptSrc="/_layouts/SPRA/DownLoadZip.js" />
</Elements>
